To convert Date dtypes from Object to ns,UTC with Pandas

44

# using pd.to_datetime convert the dtype of Date to ns,UTC.
data.Date = pd.to_datetime(data.Date)
data['Date'].dtypes
# using pd.to_datetime convert the dtype of Date to ns,UTC.
data.Date = pd.to_datetime(data.Date)
data['Date'].dtypes
# using pd.to_datetime convert the dtype of Date to ns,UTC.
data.Date = pd.to_datetime(data.Date)
data['Date'].dtypes
# using pd.to_datetime convert the dtype of Date to ns,UTC.
data.Date = pd.to_datetime(data.Date)
data['Date'].dtypes
# using pd.to_datetime convert the dtype of Date to ns,UTC.
data.Date = pd.to_datetime(data.Date)
data['Date'].dtypes
# using pd.to_datetime convert the dtype of Date to ns,UTC.
data.Date = pd.to_datetime(data.Date)
data['Date'].dtypes

Comments

Submit
0 Comments